import Vue from 'vue'
//导入路由插件
import Router from 'vue-router'
//导入上面定义的组件
import Index from '../views/Index'
//安装路由
Vue.use(Router);
//配置路由
export default new Router({
  mode: 'history',
  // base: '/dist',
  routes: [{
    //路由路径
    path: '/',
    //路由名称
    name: 'Index',
    //跳转到组件
    component: Index
  }, ]
});
